package com.jingdianjichi.wx.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@Slf4j
public class SubscribeHandler implements WxMsgHandler{
    @Override
    public WxMsgTypeEnum getMsgType() {
        return WxMsgTypeEnum.SUBSCRIBE;
    }

    @Override
    public String dealMsg(Map<String, String> msgMap) {
        log.info("触发用户关注事件");
        return "欢迎您的关注,找到隐藏彩蛋";
    }
}
